<include file='Public/header' />
<script>
	 	var istrue=false;
		function test(){
			var s1=document.getElementById("pwd").value;
			var s2=document.getElementById("rpwd").value;
			var s3 =document.getElementById("clogodiv");
			if(s1!=s2){
			s3.innerHTML="错误";
			alert("两次密码输入不一致！");
			s3.style.color="red";
			istrue=false;
			}else if(s1!="" && s1==s2){
			 s3.style.color="blue";
			  s3.innerHTML="正确";
			  istrue=true;
			}
		}
	</script>
<form method="POST" enctype= "multipart/form-data" action="{:U('add')}" role="form">
	<input type="hidden" name="uid" value="{$uid}">
	<table class="table" align="center">
		<tr><th>收货人</th><td><input type="text" class="form-control" id="name" name="name"
		required oninvalid="setCustomValidity('请填写姓名')"
					oninput="setCustomValidity('')"></td></tr>
		<tr>
		<th>收货地址</th><td><textarea name="location" class="form-control" rows="3" cols="20"
		placeholder="请填写具体一些，方便我们给您送货到家！"></textarea></td>
		</tr>
		<tr><th>手机号码</th><td><input  class="form-control" id="name" name="phone"
		required oninvalid="setCustomValidity('请填写手机号码')"
					oninput="setCustomValidity('')"></td></tr>
	</table>
	<input type="submit" class="btn btn-primary" value="提交">
</form>
<include file='Public/footer'/>
